Skip to content

feat: O11Y-920 - Add masking support for WebViews#352

Merged
agrognetti merged 7 commits intomainfrom
agrognetti/O11Y-920
Jan 23, 2026
Merged

feat: O11Y-920 - Add masking support for WebViews#352
agrognetti merged 7 commits intomainfrom
agrognetti/O11Y-920

Conversation

@agrognetti
Copy link
Copy Markdown
Contributor

@agrognetti agrognetti commented Jan 22, 2026

Summary

  • Add maskWebViews support in PrivacyProfile; cover native Android WebView and third-party WebView variants
  • Update MaskCollector traversal to reach AndroidView WebViews
  • Add XML/Compose test activities and custom views
  • Update README/tests

How did you test this change?

  • Unit test
Screen.Recording.2026-01-22.at.12.48.11.mov

Note

Introduces configurable masking for WebViews and ensures masking reaches AndroidView-hosted content.

  • Adds maskWebViews to PrivacyProfile with class-hierarchy matcher covering android.webkit.WebView, org.mozilla.geckoview.GeckoView, and other common variants; updates MaskViewRef kClass naming
  • Updates MaskCollector to traverse AndroidComposeView children so Compose AndroidView-embedded WebViews are evaluated
  • Updates README with maskWebViews usage and notes; adds unit tests for defaults and matcher behavior
  • Example app: enables maskWebViews, adds XML/Compose WebView demo activities and custom views, refactors masking UI rows; includes GeckoView dependency/repo

Written by Cursor Bugbot for commit 0d9089c. This will update automatically on new commits. Configure here.

- Add maskWebViews support in PrivacyProfile; cover native Android WebView and third-party WebView variants
- Update MaskCollector traversal to reach AndroidView WebViews
- Add XML/Compose test activities and custom views
- Update README/tests
@agrognetti agrognetti requested a review from a team as a code owner January 22, 2026 15:53
Comment thread e2e/android/app/src/main/res/layout/activity_webview.xml Dismissed
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@agrognetti agrognetti merged commit b1b46d3 into main Jan 23, 2026
24 checks passed
@agrognetti agrognetti deleted the agrognetti/O11Y-920 branch January 23, 2026 18:11
Vadman97 pushed a commit that referenced this pull request Jan 26, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-observability-android: 0.24.0</summary>

##
[0.24.0](launchdarkly-observability-android-0.23.1...launchdarkly-observability-android-0.24.0)
(2026-01-23)


### Features

* O11Y-920 - Add masking support for WebViews
([#352](#352))
([b1b46d3](b1b46d3))
</details>

<details><summary>observability: 0.5.2</summary>

##
[0.5.2](observability-0.5.1...observability-0.5.2)
(2026-01-23)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * highlight.run bumped to 9.26.0
</details>

<details><summary>session-replay: 0.5.2</summary>

##
[0.5.2](session-replay-0.5.1...session-replay-0.5.2)
(2026-01-23)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * highlight.run bumped to 9.26.0
</details>

<details><summary>highlight.run: 9.26.0</summary>

##
[9.26.0](highlight.run-9.25.1...highlight.run-9.26.0)
(2026-01-23)


### Features

* add SR support for maskAllInputs and maskInputOptions
([#354](#354))
([dad61ef](dad61ef))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Release summary**
> 
> - Adds WebView masking support in `observability-android` (v0.24.0)
> - Bumps `highlight.run` to 9.26.0 and updates dependents:
`@launchdarkly/observability` (v0.5.2) and
`@launchdarkly/session-replay` (v0.5.2)
> - Updates `.release-please-manifest.json`, package versions, and
changelogs
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
55c4b41. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants